package com.shop.www.dao;

import com.shop.www.model.Order;
import com.shop.www.model.User;

import java.util.List;

public interface OrderDAO {
    void addorder(Order order);//添加订单
    List<Order> getorderbyuser(User user);//根据用户获取所有订单
    List getorderByseller(Integer user_ID);//根据商家获取订单
    void updateorder(Order order);//修改订单状态
    List<Order> getorder(String order_status);//查看全部订单
    Order getorderByID(Integer order_ID);//查询单个订单
    List<Order> getorderBycourier(Integer user_ID);//根据配送员获取订单
    void finishorder(Order order);//完成订单

}
